package com.house.service.impl;

import com.house.entity.Remark;
import com.house.mapper.RemarkMapper;
import com.house.service.RemarkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author asus
 * @since 2021-02-28
 */
@Service
public class RemarkServiceImpl implements RemarkService {

    @Resource
    private RemarkMapper remarkMapper;

    @Override
    public List<Remark> selectRemarkByHouseId(Integer houseId) {
        return remarkMapper.selectRemarkByHouseId(houseId);
    }

    @Override
    public Integer submitRemark(Remark remark) {
        return remarkMapper.submitRemark(remark);
    }

    @Override
    public Integer deleteRemark(Integer remarkId) {
        return remarkMapper.deleteRemark(remarkId);
    }
}
